package com.gs.SynPatrolRep.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.gs.SynPatrolRep.R;
import com.gs.SynPatrolRep.adapter.base.BaseAdapter;
import com.gs.SynPatrolRep.adapter.base.BaseViewHolder;
import com.gs.SynPatrolRep.control.WEqualsHImageView;
import com.gs.SynPatrolRep.db.dto.PalBillEventDto;
import com.gs.SynPatrolRep.util.DensityUtil;
import com.gs.SynPatrolRep.util.ImageUtil;
import com.gs.SynPatrolRep.util.OKHttpUtil;

import java.util.List;

public class ReportResultPhotoAdapter extends BaseAdapter<PalBillEventDto.PalBillEventPhotoDto> {
    public ReportResultPhotoAdapter(Context context, List<PalBillEventDto.PalBillEventPhotoDto> list, int layoutId) {
        super(context, list, layoutId);
    }

    @Override
    public void convert(BaseViewHolder holder, PalBillEventDto.PalBillEventPhotoDto item, int position) {
        WEqualsHImageView iv = holder.fd(R.id.iv_pic);
        ImageUtil.getInstance().loadImg(context, OKHttpUtil.IMG_URL+item.getPhoto(), iv);
    }
}
